import { getSessionKey } from '@/common/http.api.js';
export default {
	checkToken({state,commit}) {
		// #ifdef APP-PLUS
		if(uni.getSystemInfoSync().platform==='ios'&&!state.isAuth) {
			uni.$u.route({
				type: 'reLaunch',
				url: '/pages/login/auth/auth'
			});
			return;
		}
		// #endif
		if(!state.loginInfo) uni.$u.route({
			type: 'reLaunch',
			url: '/pages/login/login/login'
		});
	},
}